package cn.zwx.member.svc.domain.warp;

import cn.zwx.member.svc.domain.bo.CheckUserAddressExistBO;
import cn.zwx.member.svc.rpc.dto.InsertAddressDTO;
import org.springframework.beans.BeanUtils;

/**
 * @author zhangwenxue
 */
public class AddressWrap {

    public static CheckUserAddressExistBO wrap(InsertAddressDTO dto){
        final CheckUserAddressExistBO checkUserAddressExistBO = new CheckUserAddressExistBO();
        BeanUtils.copyProperties(dto,checkUserAddressExistBO);
        return checkUserAddressExistBO;
    }
}
